import { PreviewEnum } from '@/enums/pageEnum'
import { RouteRecordRaw } from 'vue-router'

const importPath = {
  [PreviewEnum.CHART_PREVIEW_NAME]: () => import('@/views/preview/wrapper.vue')
}

const previewRoutes: RouteRecordRaw = {
  path: PreviewEnum.CHART_PREVIEW,
  name: PreviewEnum.CHART_PREVIEW_NAME,
  component: importPath[PreviewEnum.CHART_PREVIEW_NAME],
  meta: {
    title: '预览',
    isRoot: true
  }
}

export default previewRoutes
